package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SBattlefieldScore extends Object implements IMessageBase
    {
        public var scoreCamp1:int;
        public var scoreCamp2:int;
        public var scoreCamp3:int;
        public const _type:int = 92;
        public static var _regist:SBattlefieldScore = new SBattlefieldScore(true);

        public function SBattlefieldScore(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            
        }

        public function getType() : int
        {
            return this._type;
        }

        public function clone() : IMessageBase
        {
            return new SBattlefieldScore();
        }

        public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.scoreCamp1);
            param1.writeInt(this.scoreCamp2);
            param1.writeInt(this.scoreCamp3);
            
        }

        public function __read(param1:SerializeStream) : void
        {
            this.scoreCamp1 = param1.readInt();
            this.scoreCamp2 = param1.readInt();
            this.scoreCamp3 = param1.readInt();
            
        }

    }
}
